package com.atguigu.yygh.cmn.controller.inner;

/**
 * Created with IntelliJ IDEA
 *
 * @Date: 2022/12/23 - 11:21
 * @Author: Hyoung
 * @Description:
 */

import com.atguigu.yygh.cmn.service.DictService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/inner/cmn/dict")
@Api(tags = "数据字典接口")
public class InnerDictController {
    @Autowired
    private DictService dictService;

    @ApiOperation(value = "获取数据字典名称")
    @GetMapping(value = "/getName")
    public String getName(String parentDictCode, String value) {

        return dictService.getNameByParentDictCodeAndValue(parentDictCode, value);
    }
}
